package com.mantru.iotpot.job;

/**
 * 步骤结点类
 */
public class JobSteep {
    //步骤类型：1设备控制、2添加液体料、3添加主配菜
    public int steep_type;
    //步骤序号，从1开始
    public int steep_index;
    //锅位置：1洗锅位、2炒菜位、3出菜位
    public int pot_position;
    //档位，0-9档，值越大表示火力越大
    public int fire_value;
    //清洗时长的缩写格式，格式mm:ss
    public String time_value;
    //总时长，将time_value转换为秒的值，单位：秒
    public int time_long;
    //转速，0停、1慢、2中、3快
    public int speed_value;
    //锅转向，1逆时针、2顺时针
    public int rotation_value;
    //水泵状态：1启用、0停用
    public int status;
    //自动语音播报文本
    public String tts_text;
    //开始执行、结束执行、已执行的时间截，13位，单位：ms
    public long begin_time = 0, end_time = 0, pass_time = 0;

    public JobSteep(int steep_type, int steep_index, int pot_position, int fire_value, String time_value, int time_long, int speed_value, int rotation_value, int status, String tts_text){
        this.steep_type = steep_type;
        this.steep_index = steep_index;
        this.pot_position = pot_position;
        this.fire_value = fire_value;
        this.time_value = time_value;
        this.time_long = time_long;
        this.speed_value = speed_value;
        this.rotation_value = rotation_value;
        this.status = status;
        this.tts_text = tts_text;
        begin_time = 0;
        end_time = 0;
        pass_time = 0;
    }
}
